package cn.powerone.scm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.powerone.common.annotation.Excel;
import cn.powerone.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 scm_inventory
 * 
 * @author PowerOne
 * @date 2025-07-20
 */
public class ScmInventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存主键 */
    private Long id;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    /** 库位ID */
    @Excel(name = "库位ID")
    private Long warehouseLocationId;

    /** 当前库存数量 */
    @Excel(name = "当前库存数量")
    private Long currentQuantity;

    /** 可用数量 */
    @Excel(name = "可用数量")
    private Long availableQuantity;

    /** 已分配数量 */
    @Excel(name = "已分配数量")
    private Long allocatedQuantity;

    /** 最低库存预警值 */
    @Excel(name = "最低库存预警值")
    private Long minimumStock;

    /** 最高库存预警值 */
    @Excel(name = "最高库存预警值")
    private Long maximumStock;

    /** 库存状态 */
    @Excel(name = "库存状态")
    private Long inventoryStatus;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUpdateTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updatedBy;

    /** 更新人ID */
    @Excel(name = "更新人ID")
    private Long updatedById;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setWarehouseLocationId(Long warehouseLocationId) 
    {
        this.warehouseLocationId = warehouseLocationId;
    }

    public Long getWarehouseLocationId() 
    {
        return warehouseLocationId;
    }
    public void setCurrentQuantity(Long currentQuantity) 
    {
        this.currentQuantity = currentQuantity;
    }

    public Long getCurrentQuantity() 
    {
        return currentQuantity;
    }
    public void setAvailableQuantity(Long availableQuantity) 
    {
        this.availableQuantity = availableQuantity;
    }

    public Long getAvailableQuantity() 
    {
        return availableQuantity;
    }
    public void setAllocatedQuantity(Long allocatedQuantity) 
    {
        this.allocatedQuantity = allocatedQuantity;
    }

    public Long getAllocatedQuantity() 
    {
        return allocatedQuantity;
    }
    public void setMinimumStock(Long minimumStock) 
    {
        this.minimumStock = minimumStock;
    }

    public Long getMinimumStock() 
    {
        return minimumStock;
    }
    public void setMaximumStock(Long maximumStock) 
    {
        this.maximumStock = maximumStock;
    }

    public Long getMaximumStock() 
    {
        return maximumStock;
    }
    public void setInventoryStatus(Long inventoryStatus) 
    {
        this.inventoryStatus = inventoryStatus;
    }

    public Long getInventoryStatus() 
    {
        return inventoryStatus;
    }
    public void setLastUpdateTime(Date lastUpdateTime) 
    {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Date getLastUpdateTime() 
    {
        return lastUpdateTime;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedById(Long updatedById) 
    {
        this.updatedById = updatedById;
    }

    public Long getUpdatedById() 
    {
        return updatedById;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("warehouseLocationId", getWarehouseLocationId())
            .append("currentQuantity", getCurrentQuantity())
            .append("availableQuantity", getAvailableQuantity())
            .append("allocatedQuantity", getAllocatedQuantity())
            .append("minimumStock", getMinimumStock())
            .append("maximumStock", getMaximumStock())
            .append("inventoryStatus", getInventoryStatus())
            .append("lastUpdateTime", getLastUpdateTime())
            .append("updatedAt", getUpdatedAt())
            .append("updatedBy", getUpdatedBy())
            .append("updatedById", getUpdatedById())
            .toString();
    }
}
